﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000F2 RID: 242
	internal class ReadNextStr32 : IReadNextDecoder
	{
		// Token: 0x06000375 RID: 885 RVA: 0x0000C836 File Offset: 0x0000AC36
		private ReadNextStr32()
		{
		}

		// Token: 0x06000376 RID: 886 RVA: 0x0000C840 File Offset: 0x0000AC40
		public int Read(byte[] bytes, int offset)
		{
			int num = (int)bytes[offset + 1] << 24 | (int)bytes[offset + 2] << 16 | (int)bytes[offset + 3] << 8 | (int)bytes[offset + 4];
			return num + 5;
		}

		// Token: 0x0400010B RID: 267
		internal static readonly IReadNextDecoder Instance = new ReadNextStr32();
	}
}
